//
//  ForumDetailViewController.m
//  Project_A Gary
//
//  Created by leilei on 16/4/5.
//  Copyright © 2016年 www.lei.com. All rights reserved.
//

#import "ForumDetailViewController.h"

@interface ForumDetailViewController ()

@end

@implementation ForumDetailViewController

-(void)dealloc
{
    [_url release];
    [super dealloc];
    
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    self.navigationController.title = @"精选推荐";
    
    [self createWebView];
}


#pragma mark - 创建webView
- (void)createWebView
{
    UIWebView *recommendWebView = [[UIWebView alloc] initWithFrame:self.view.frame];
    [self.view addSubview:recommendWebView];
    NSURL *webViewUrl = [NSURL URLWithString:self.url];
    NSURLRequest *request = [NSURLRequest requestWithURL:webViewUrl];
    [recommendWebView loadRequest:request];
    
    [recommendWebView release];
    
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
